{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcss.css">
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li ><a href="{php echo $this->createWebUrl('in')}">商家入驻管理</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('addin')}">添加商家入驻</a></li>
</ul>
<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                内容编辑
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">入驻期限</label>
                    <div class="col-sm-9">
                            <select name="type" class="col-md-4">
                            {if $info['type']==1}
                            <option value="1" selected>一周</option>
                            <option value="2" >半年</option>
                            <option value="3" >一年</option>
                            {elseif $info['type']==2}
                            <option value="1" >一周</option>
                            <option value="2" selected>半年</option>
                             <option value="3" >一年</option>
                            {elseif $info['type']==3}
                            <option value="1" >一周</option>
                            <option value="2">半年</option>
                            <option value="3" selected>一年</option>
                            {else}
                            <option value="1">一周</option>
                            <option value="2">半年</option>
                            <option value="3">一年</option>
                            {/if}
                            </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">本地价格</label>
                    <div class="col-sm-9">
                        <input type="text" name="money" onkeyup="value=value.replace(/[^\d.]/g,'')" class="form-control" value="{$info['money']}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">全国版价格</label>
                    <div class="col-sm-9">
                        <input type="text" name="money2" onkeyup="value=value.replace(/[^\d.]/g,'')" class="form-control" value="{$info['money2']}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">排序</label>
                    <div class="col-sm-9">
                        <input type="number" name="num"  class="form-control" value="{$info['num']}" />
                        <span class="help-block">*从小到大排序</span>
                    </div>
                </div>

            </div>
        </div>
        <div class="form-group">
            <input type="submit" name="submit" value="提交" class="btn col-lg-3" style="color: white;background-color: #44ABF7;"/>
            <input type="hidden" name="token" value="{$_W['token']}" />
            <input type="hidden" name="id" value="{$info['id']}" />
        </div>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        $("#frame-0").show();
        $("#yframe-0").addClass("wyactive");
    })
</script>{template 'common/footer'}